<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cambiar Contraseña</title>
        <link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" media="screen">
    </head>
    <body>
        <f:view>
            <%@ include file="/barra.jsp" %>
            
            <table width="1242" border="0">
                <tr>
                    <td width="21%" align="left" valign="top">
                        <!-- Divisor del Contenido Principal -->
                        <div id="siteName">                        </div>
                        <div id="content"> 
                            <div class="feature">
                                <jsp:directive.include file="/welcomeJSF.jsp" />
                            </div> 
                        </div> 
                        
                    <!-- Fin del Contenido Principal -->                  </td>
                    <td width="79%" align="left" valign="top">
                        <h1>Cambiar Contraseña. </h1>
                        <h:messages showDetail="true" errorStyle="color: red" infoStyle="color: green"/>
                        <h:form id="changepassword">
                            
                            <h:panelGrid columns="2" border="0" >
                                <h:outputText styleClass="label" value="Contraseña actual:"/>
                                <h:inputSecret id="password" value="#{usermanager.password}"/>
                                <h:outputText styleClass="label" value="Contraseña nueva:"/>
                                <h:inputSecret id="newpassword" value="#{usermanager.newpassword}"/>
                                <h:outputText styleClass="label" value="Confirmar nueva contraseña:"/>
                                <h:inputSecret id="confirmpassword" value="#{usermanager.confirmpassword}"/>
                            </h:panelGrid>
                            <h:commandLink styleClass="boton" value="Confirmar" action="#{usermanager.changePassword}"/>
                            <br>
                            <%--h:commandLink id="create"
                           value="Create New Account"
                            action="create"/--%>
                        </h:form>              
                    </td>
                </tr>    
            </table>
            
            <%@ include file="/footer.jsp" %>
            
        </f:view>
    </body>
</html>
